package com.system.server;

import com.system.pojo.UserLogin;
import exception.LoginError;
import exception.OldPasswordError;
import exception.passwordDiffError;

import java.util.Set;

/**
 * @Author: E-mail:
 * @Version: 创建时间：2019年04月09日19:17
 * @Description: <描述>
 */
public interface UserService {
    public UserLogin findUserByUsernameAndPassword(String username, String password) throws LoginError;

    void updatePassword(String oldPassword, String newPassword,String aginaNewPassword, Integer userID) throws OldPasswordError, passwordDiffError;

    Set<String> findRolesByName(String userName);

    UserLogin findUserLoginByName(String loginName);
}
